<div *ngIf="passenger" class="form-horizontal">
    <div class="row">
        <div class="form-group col-sm-6">
            <label for="id" class="form-control-label">乘客ID:</label>
            <input id="id" [(ngModel)]="passenger.passenger_id" placeholder="乘客ID" class="form-control" required  /> <!--readonly -->
        </div>
        <div class="form-group col-sm-6">
            <label for="name" class="form-control-label">乘客姓名:</label>
            <input id="name" [(ngModel)]="passenger.passenger_name" placeholder="乘客姓名" class="form-control" required />
        </div>
    </div>
    <!--<div class="row">
        <div class="form-group col-sm-6">
            <label for="mobile" class="form-control-label">电话:</label>
            <input id="mobile" [(ngModel)]="driver.driver_mobile" placeholder="电话" class="form-control" required />
        </div>
        <div class="form-group col-sm-6">
            <label for="carrier" class="form-control-label">所属公司:</label>
            <select class="form-control" id="power" required [(ngModel)]="driver.carrier_id" name="power">
                <option *ngFor="let carrier of carriers" [value]="carrier.carrier_id">{{carrier.carrier_name}}</option>
            </select>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-sm-6">
            <label for="status" class="form-control-label">是否有效:</label>
            <select class="col-sm-10 form-control" id="status" [(ngModel)]="driver.status">
                <option>YES</option>
                <option>NO</option>
            </select>
        </div>
        <div class="form-group col-sm-6">
            <label for="login_name" class="form-control-label">登录名:</label>
            <input id="login_name" [(ngModel)]="driver.login_username" placeholder="登录名" class="col-sm-10 form-control" required />
        </div>
    </div>-->
    <div class="row">
        <div class="form-group">
            <!--<div class="col-sm-1">
                <button class="btn btn-danger" *ngIf="driver.driver_id" (click)="delete()">删除</button>
            </div>-->
            <div class="offset-sm-9 col-sm-1">
                <button class="btn btn-default" (click)="cancel()">取消</button>
            </div>
            <div class="col-sm-1">
                <button class="btn btn-primary" (click)="save()">保存</button>
            </div>
        </div>
    </div>
</div>